import requests
#
# # 创建 session对象
# session = requests.Session()
#
# # 发送 验证码请求 get
# session.get(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.24617996152873056")
#
# # 发送 登录请求 post
# resp = session.post(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.4793513696843317",
#                     data={"username": "13600001111", "password": "123456", "verify_code": "8888"})
#
# # 打印响应结果
# print("登录结果：", resp.json())


#登录接口普通实现方式
resp = requests.post(url="https://heimahr.itheima.net/api/sys/login",
                     json={"mobile": "13800000002", "password": "hm#qd@23!"})
print(resp.json())